package com.lagou.myblog.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;

@Entity
@Table(name = "t_article")
@Data
public class Article {

    @Id
    private Integer id;
    private String title;
    private String content;
    private LocalDate created;
    private LocalDate modified;
    private String categories;
    private String tags;
    @Column(name = "allow_comment")
    private boolean allowComment;
    private String thumbnail;

}
